<%@ page language="java" pageEncoding="UTF-8"%>
<div ng-controller="DiscussEditController">
	<form role="form" callback="save" validate>
		<div class="form-group">
			<label>
				标题
			</label>
			<input type="text" class="form-control" placeholder="请输入标题" name="title" ng-model="discuss.title" rule="required;length[5~100]">
		</div>
		<div class="form-group">
			<label>
				内容
			</label>
			<textarea name="content" rule="required;length[5]" ng-model="discuss.content" editor-width="100%;" editor></textarea>
		</div>
		<button type="submit" class="btn btn-success btn-sm">
			<i class="glyphicon glyphicon-ok-sign"></i> 保存
		</button>
	</form>
</div>